
To run the code:
1) Install the packages in "0. Packages.R" if not installed yet.
2) Open the project "Project.Rproj"
3) Choose the desired setup in "0.2. Preliminary definitions.R"
4) Run the code for the chosen setup via:  source("Run all.R")

We used RStudio to run the code.
Runtime can be several hours. 

Here's an overview:

0 - Packages and set-up choices
1 - Data preparation
2 - Forecast functions
3 - Allocation function
4.1 - Definitions of data and parameters
4.2 - Execution of forecasts
5 - Preparation of output as Latex table and pdfs with plots